package com.mingqijia.gassafety.job.hangzhou.service.impl;

import cn.hutool.core.bean.BeanUtil;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mingqijia.gassafety.db.hangzhou.entity.CityProduct;
import com.mingqijia.gassafety.db.hangzhou.entity.ThingModelEvent;
import com.mingqijia.gassafety.db.hangzhou.entity.ThingModelOutputData;
import com.mingqijia.gassafety.db.hangzhou.entity.ThingModelProperty;
import com.mingqijia.gassafety.db.hangzhou.mapper.ThingModelEventMapper;
import com.mingqijia.gassafety.job.hangzhou.request.CreateCityThingModel;
import com.mingqijia.gassafety.job.hangzhou.request.ThingModelEventRequest;
import com.mingqijia.gassafety.job.hangzhou.request.ThingModelPropertyRequest;
import com.mingqijia.gassafety.job.hangzhou.response.HzResponse;
import com.mingqijia.gassafety.job.hangzhou.service.*;
import com.mingqijia.gassafety.shared.constant.Constants;
import com.mingqijia.gassafety.shared.constant.HangZhouConst;
import com.mingqijia.gassafety.shared.utils.commonUtils.BeanConvertUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;

/**
 * <p>
 * 杭州对接-物模型事件 服务实现类
 * </p>
 *
 * @author wanghai
 * @since 2022-04-11
 */
@Service
public class ThingModelEventServiceImpl extends ServiceImpl<ThingModelEventMapper, ThingModelEvent> implements ThingModelEventService {
    @Value("${gassafety.hangzhou.yhSpId}")
    private String hangzhouSpId;

    @Autowired
    HangZhouService hangZhouService;




    @Override
    public void createCityThingModel() {
        hangZhouService.createCityThingModel();
    }
}
